†<!--
 * 我的个人中心页面
 * @Author: John Trump
 * @Date: 2020-07-15 09:44:12
 * @LastEditors: John Trump
 * @LastEditTime: 2020-07-15 10:13:50
 * @FilePath: /src/views/my/index.vue
-->

<template>
  <div>
    <div style="width:92%">
      <!-- Banner -->
      <div class="banner">
        <div class="logo">
          <mu-avatar size="180">
            <img src="../../assets/images/logo.png" />
          </mu-avatar>
        </div>
      </div>
      <div class="container">
        <!-- Section-1 -->
        <div class="section-1">
          <div class="btn">
            <img class="icon" src="../../assets/images/my_health.png" alt="健康凭证" />
            <div class="title">健康凭证</div>
          </div>
          <div class="split"></div>
          <div class="btn">
            <img class="icon" src="../../assets/images/my_report.png" alt="健康报告" />
            <div class="title">健康报告</div>
          </div>
        </div>
        <!-- Section-2 -->
        <div class="section-2">
          <mu-row gutter>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_service.png" alt="我的服务" />
              <div class="title">我的服务</div>
            </mu-col>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_welfare.png" alt="保险福利" />
              <div class="title">保险福利</div>
            </mu-col>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_doctor.png" alt="私人医生" />
              <div class="title">私人医生</div>
            </mu-col>
          </mu-row>
          <mu-row gutter>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_ask.png" alt="我的问诊" />
              <div class="title">我的问诊</div>
            </mu-col>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_tele.png" alt="电话医生" />
              <div class="title">电话医生</div>
            </mu-col>
            <mu-col span="4">
              <img @click="jumpto()" src="../../assets/images/my_reg.png" alt="我的挂号" />
              <div class="title">我的挂号</div>
            </mu-col>
          </mu-row>
        </div>
        <!-- Section-3 -->
        <div class="section-3">
          <!-- 登录button -->
          <mu-button @click="handleChangeAccount" round ripple class="btn green">切换账号</mu-button>
          <mu-button @click="handleSuggest" round ripple class="btn yellow">建议反馈</mu-button>
        </div>
      </div>
    </div>
     <BasicLayout></BasicLayout>
  </div>
</template>

<script>
import BasicLayout from "../../components/BasicLayout";
export default {
  name: "MyView",
  methods: {
    /** 切换账号 */
    handleChangeAccount() {
      console.log("handleChangeAccount");
    },

    /** 建议反馈 */
    handleSuggest() {
      console.log("handleSuggest");
    }
  },
  components: {
    BasicLayout
  }
};
</script>

<style lang="less" scoped>

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  background: url("../../assets/images/my_banner.png") no-repeat;
  background-size: cover;
}
.container {
  position: relative;
  top: -40px;
}

.section-1 {
  width: 1200px;
  height: 140px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 2px 30px 0px rgba(18, 70, 53, 0.08);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  .split {
    display: block;
    background: rgba(51, 203, 152, 1);
    border-radius: 4px;
    width: 8px;
    height: 40px;
  }
  .btn {
    height: 100%;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    &:active {
      opacity: 0.8;
    }
    .icon {
      width: 70px;
      height: 70px;
      margin-right: 40px;
    }
    .title {
      font-size: 40px;
      font-weight: bold;
    }
  }
}

.section-2 {
  position: relative;
  top: 40px;
  width: 1200px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 2px 30px 0px rgba(18, 70, 53, 0.08);
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;

  /* Add click effect */
  .row {
    .col {
      &:active {
        opacity: 0.8;
      }
    }
  }

  img {
    width: 120px;
    height: 120px;
  }
  .title {
    font-size: 34px;
    font-weight: bold;
    line-height: 80px;
  }
}
.section-3 {
  position: relative;
  top: 40px;
  margin-top: 40px;
  .btn {
    box-sizing: content-box;
    padding: 0 40px;
    height: 80px;
    &.green {
      background: linear-gradient(
        180deg,
        rgba(129, 231, 180, 1),
        rgba(51, 203, 152, 1)
      );
      box-shadow: 0px 6px 20px 0px rgba(51, 203, 152, 0.5);
    }
    &.yellow {
      background: linear-gradient(
        180deg,
        rgba(253, 226, 172, 1),
        rgba(254, 206, 128, 1)
      );
      box-shadow: 0px 6px 20px 0px rgba(233, 174, 74, 0.5);
    }
    border-radius: 40px;
    font-size: 40px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: rgba(255, 255, 255, 1);
    margin: 0 50px;
  }
}
</style>
